<?php
/**
 * Created by PhpStorm.
 * User: sosyuki
 * Date: 2018/5/30
 * Time: 14:30
 */

namespace Drupal\distribution\ViewsController\handler\field;


use views_handler_field;

class DistributionApplyFieldShowStatus extends views_handler_field {

  public function render($values) {
    $value = $this->get_value($values);
    $options = [
      0 => '审核中',
      1 => '已通过',
      2 => '未通过',
    ];
    return isset($options[$value]) ? $options[$value] : '';
  }

}
